
<div class="simple-content" ng-init="init()">
	<div class="row">
		<div class="col-md-12">
			<div class="box">
			    <div class="box-header header-color-blue">
				    <h5 class="bigger lighter">
						<i class="icon-table"></i>
					 数据仿真
				    </h5>
			    </div>	
			    <div class="box-body">
					<div class="widget-main">
																				
							<div class="step-content row-fluid position-relative">
							<div class="step-pane active" id="step2">
								<div class="row">
									<div class="col-xs-12"> 
										<div class="col-sm-12">
											<div class="tabbable" style="margin-top:10px">
												<ul class="nav nav-tabs" id="myTab">
													<li class="active">
														<a data-toggle="tab" href="#create">
															<i class="green icon-bolt"></i> 创建仿真数据
														</a>
													</li>
													<li>
														<a data-toggle="tab" href="#impSimulation">
															<i class="green icon-bar-chart"></i> 导入仿真数据									
														</a>
													</li>
												</ul>
											<div class="tab-content">
											   <div id="create" class="tab-pane in active">
												<div class="box-body">
												 <div class="widget-main">
													
													<form id="basePlan-form" name="createForm" class="form-horizontal group-border-dashed" action="" method="POST" novalidate>
													<div class="step-content row-fluid position-relative" id="step-container">
														<div class="step-pane active" id="step1">					
															<div class="row padding-4">
																	<div class="col-md-12 col-lg-12">
																		<div class="form-group">
																			<label class="col-sm-2 control-label">发车间隔(min)</label>
																			 <div class="col-sm-3">
																					<input name="interval" type="text" required  ng-integer class="form-control" ng-min="0" ng-max="100" ng-model="basePlan.interval" placeholder="请输入0到100之间整数"/>
																					<span class="error" ng-show="createForm.interval.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>																					
																			 </div>													 
																			<label class="col-sm-3 control-label">平均速度(km/h)</label>
																			 <div class="col-sm-3">
																					<input name="avgSpeed" type="text" class="form-control" ng-integer ng-min="0" ng-max="60" placeholder="请输入整数字" ng-model="basePlan.avgSpeed" placeholder="请输入0到60之间整数" >
																					<span class="error" ng-show="createForm.avgSpeed.$invalid">输入不合法或不在有效范围内,请输入0到60之间整数</span>
																			 </div>								 
																		</div>	
																		<div class="form-group">
																				<!-- <label class="col-sm-2 control-label">折返时间(min)</label>
																			 <div class="col-sm-3">
																					<input name="returnTime"  type="text" ng-integer ng-min="0" ng-max="50" class="form-control" placeholder="请输入0到50之间整数" ng-model="basePlan.returnTime" >
																					<span class="error" ng-show="createForm.returnTime.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
																			 </div>	 -->
																			 <label class="col-sm-2 control-label">平均停站时间(s)</label>
																			 <div class="col-sm-3">
																					<input name="avgStopTime" type="text" ng-integer ng-min="0" ng-max="100" class="form-control" placeholder="请输入0到50之间整数" ng-model="basePlan.avgStopTime" >
																					<span class="error" ng-show="createForm.avgStopTime.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
																			 </div>	
																		</div>											
																		<div class="form-group ">
																			<label class="col-sm-2 control-label">下行发车数量(辆)</label>
																			 <div class="col-sm-1">
																					<input name="downNum" type="text"  ng-integer ng-min="0" ng-max="100" class="form-control" ng-model="basePlan.downNum" placeholder="请输入0到10之间整数">
																					<span class="error" ng-show="createForm.downNum.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
																			 </div>																
															<!-- 				<label class="col-sm-1 control-label">运营路线</label>
																			<div class="col-sm-2">
																				<select ui-select name="downOperationPath" ng-model="basePlan.downOperationPath" required data-placeholder="请选择" style="width: 100%;">
																					<option ng-repeat="operationPath in downOperationPaths" value="{{operationPath.path}}">{{tranPath(operationPath.path)}}</option>
																				</select>
																			</div> -->												
																			<!-- <label class="col-sm-1 control-label">运行次数</label>
																			 <div class="col-sm-1">
																					<input name="downTotal" type="text" ng-integer ng-min="0" ng-max="20" class="form-control"  ng-model="basePlan.downTotal" placeholder="请输入0到20之间整数">
																					<span class="error" ng-show="createForm.downTotal.$invalid">输入不合法或不在有效范围内,请输入0到20之间整数</span>
																			</div> -->
																			<label class="col-sm-1 control-label">发车时间</label>
																			<div class="col-sm-2">
																				<div class="input-group bootstrap-timepicker col-md-5 col-xs-7"  data-link-field="downStartTime" style="width:100%">
																					<input  id="downStartTime" ui-timepicker name="downStartTime" ng-model="basePlan.downStartTime" class="form-control" size="16" type="text" readonly="readonly">
																					<span class="input-group-addon btn btn-primary"><span class="glyphicon glyphicon-time"></span></span>
																				</div>
																			</div>												
																		</div>						 
																		<div class="form-group ">
																			<label class="col-sm-2 control-label">上行发车数量(辆)</label>
																			 <div class="col-sm-1">
																					<input name="upNum" type="text" ng-integer  ng-min="0" ng-max="100" class="form-control" ng-model="basePlan.upNum" placeholder="请输入0到10之间整数">
																					<span class="error" ng-show="createForm.upNum.$invalid">输入不合法或不在有效范围内,请输入0到100之间整数</span>
																			 </div>																																					
											<!-- 								<label class="col-sm-1 control-label">运营路线</label>
																			<div class="col-sm-2">
																				<select ui-select name="upOperationPath" ng-model="basePlan.upOperationPath" required data-placeholder="请选择" style="width: 100%;">
																					<option ng-repeat="operationPath in upOperationPaths" value="{{operationPath.path}}">{{tranPath(operationPath.path)}}</option>
																				</select>
																			</div> -->
																			<!-- <label class="col-sm-1 control-label">运行次数</label>
																			 <div class="col-sm-1">
																					<input name="upTotal" type="text" ng-integer ng-min="0" ng-max="20" class="form-control" ng-model="basePlan.upTotal" placeholder="请输入0到20之间整数">
																					<span class="error" ng-show="createForm.upTotal.$invalid">输入不合法或不在有效范围内,请输入0到20之间整数</span>
																			</div> -->
																			<label class="col-sm-1 control-label">发车时间</label>												
																			<div class="col-sm-2">
																				<div class="input-group bootstrap-timepicker col-md-5 col-xs-7"  data-link-field="upStartTime" style="width:100%">
																					<input  id="upStartTime" ui-timepicker name="upStartTime" ng-model="basePlan.upStartTime" class="form-control" size="16" type="text" readonly="readonly">
																					<span class="input-group-addon btn btn-primary"><span class="glyphicon glyphicon-time"></span></span>
																				</div>
																			</div>												
																		</div>										 														

																	</div>
															</div>							 
														</div>
														</form>
													</div>
													<footer class="panel-footer text-right">
														<button type="submit" type="button" class="btn btn-primary" ng-click = "dataInput()"  ng-disabled="createForm.$invalid">提交</button>
														<a ng-click="cancel()" class="btn btn-default">取消</a>
													</footer>
												</div>
											</div><!--box-body-->
											</div>
												<div id ="impSimulation" class="tab-pane">
                                                      <label>上传仿真json文件</label>
													 {{uploadFlag}}
													  <input type="file" name="file" id="file" accept=".json" ng-model="uploadFlag">
													 <footer class="panel-footer text-right">
														 <button type="submit" type="button" class="btn btn-primary" ng-click="uploadTest()" ng-disabled="!uploadFlag">提交</button>
														 <a ng-click="cancel()" class="btn btn-default">取消</a>
													 </footer>
												</div>
												</div>
											</div>
										</div><!-- /span -->
									</div>  
								</div>
							</div>
							</div>
						
						</div><!--step--->
					
					</div><!--widget-main-->
				</div><!--box-body-->
			</div><!--box-->
		</div><!--col-md-12-->
	</div><!--row-->
</div><!--simple-content-->
